package cn.hp.crm.model;

import java.util.Date;

public class User {

    private int id ;
    private String userName ;
    private String password ;
    private String realName ;
    private String img ;
    private int type ;
    private int isDel ;
    private Date createTime ;
    private Date modifyTime ;

    public User(String userName, String password, String realName, int type) {
        this.userName = userName;
        this.password = password;
        this.realName = realName;
        this.type = type;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", realName='" + realName + '\'' +
                ", img='" + img + '\'' +
                ", type=" + type +
                ", isDel=" + isDel +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }

    public User() {
    }

    public User(int id, String userName, String password, String realName, String img, int type, int isDel,
                Date createTime, Date modifyTime) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.realName = realName;
        this.img = img;
        this.type = type;
        this.isDel = isDel;
        this.createTime = createTime;
        this.modifyTime = modifyTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getIsDel() {
        return isDel;
    }

    public void setIsDel(int isDel) {
        this.isDel = isDel;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }
}
